package com.chengfei.house.web.filter;


import lombok.extern.log4j.Log4j;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author chengfei cheng.fei@chinaott.onaliyun.com
 **/
@Log4j
public class LogFilter implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        log.info("request coming");
        chain.doFilter(request,response);
    }

    @Override
    public void destroy() {

    }
}
